package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectAllDeptDTO;
import com.itheima.tlias84.entity.Dept;
import com.itheima.tlias84.po.InstertDeptParam;
import com.itheima.tlias84.utils.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptService {
    List<SelectAllDeptDTO> selectAll();

    int insertDept(InstertDeptParam param);

    int deleteById(Integer id);

    SelectAllDeptDTO selectById(Integer id);

    ResultUtil updateDeptById(Dept dept);

    int batchDelete(List<Integer> ids);
}
